/*
 * menu.h
 *
 *  Created on: 09-oct-2008
 *      Author: hector
 */

#ifndef MENU_H_
#define MENU_H_

#include "libmpdclient.h"

#define MAX_LINES (272/15 - 1)

typedef struct {
	int (*init)(void*, mpd_Connection*);
	int (*handleX)(void*, mpd_Connection*);
	int (*handleS)(void*, mpd_Connection*);
	int (*handleT)(void*, mpd_Connection*);
	int (*handleC)(void*, mpd_Connection*);
	int (*handleUp)(void*, mpd_Connection*);
	int (*handleDown)(void*, mpd_Connection*);
	int (*handleLT)(void*, mpd_Connection*);
	int (*handleRT)(void*, mpd_Connection*);
	int (*aboutToShow)(void*, mpd_Connection*);
	int (*aboutToHide)(void*, mpd_Connection*);
	int (*destroy)(void*, mpd_Connection*);

	void *state;
} menu;

#endif /* MENU_H_ */
